package com.sq.partner.manager.service;

import java.util.List;
import java.util.Map;

import com.sq.partner.manager.mybatis.model.GatewayVatRate;
import com.sq.partner.manager.mybatis.model.VatFromDto;
import com.sq.partner.manager.util.Page;

public interface IGatewayVatService {
	public Map <String ,VatFromDto>  queryFromVat () throws Exception;
	/***
	 * 从VMS查询所有的税率信息
	 * **/
	public List <Object[]>   queryListObjectsFromVat() throws Exception;
	public boolean  addVat(VatFromDto vatFromDto) throws Exception;
	public boolean  updateVat(VatFromDto vatFromDto) throws Exception;
	public GatewayVatRate  queryToVat(VatFromDto vatFromDto) throws Exception;
	public Page queryPage(Page page) throws Exception;
	public VatFromDto  querySingleVat (GatewayVatRate gatewayVatRate) throws Exception;
	/**
	 * 批量插入税率到一个备份表T_GATEWAY_VAT_RATE_FIRSTBAK
	 * ***/
	public boolean BatchInsertVatRate(List<Object[]> params) throws Exception;

	/***
	 * 从备份表全量更新(先全删除再插入)税率到T_GATEWAY_VAT_RATE
	 * **/
	public boolean DelOldVatAndCopyNewVatRate() throws Exception;
	
}